package com.swotxu.mall.ware.vo;

import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * {
 *   id: 2,//采购单id
 *   items: [{itemId:1,status:3,reason:""},{itemId:2,status:4,reason:"无货"}]//完成/失败的需求详情
 * }
 * @Date: 2021/1/11 20:30
 * @Author: swotXu
 */
@Data
public class PurchaseDoneVo {

    /**
     * 采购单id
     */
    @NotNull
    private Long id;
    /**
     * 完成或未完成的采购数据
     */
    private List<PurchaseItemDoneVo> items;

    @Data
    public static class PurchaseItemDoneVo {
        @NotNull
        private Long itemId;
        @NotNull
        private Integer status;
        private String reason;
    }
}
